package org.osiris.client.model;

import com.extjs.gxt.ui.client.data.BaseModelData;

public class CategoriaViewBean extends BaseModelData {

	/**
	 * 
	 */
	public CategoriaViewBean(){
		super();
	}
	public CategoriaViewBean(Long id,String name,CategoriaViewBean padre){
		this.setid(id);
		this.setnombre(name);
		this.setpadre(padre);
	}
	
	private static final long serialVersionUID = 1L;
	public String getnombre(){return get("nombre");}
	public Long getid(){return get("id");}
	public CategoriaViewBean getpadre(){return get("padre");}

	public void  setnombre(String a){ set("nombre",a);}
	public void  setid(Long a){ set("id",a);}
	public void  setpadre(CategoriaViewBean a){ set("padre",a);}
	public String toString(){
		return getnombre();
	}
}
